import 'server-only'; import ChromeSlot from '@akinon/pz-theme/src/chrome/chrome-slot'; import { PLACEHOLDER_SLUGS } from '@akinon/pz-theme/src/chrome/placeholder-slugs'; import { buildErrorPageContext } from '@akinon/pz-theme/src/chrome/page-context'; import { withSegmentDefaults } from '@akinon/next/hocs/server'; import ServerErrorContent from '@theme/views/server-error-content'; // The error boundary cannot be opened by URL, so the theme editor could never // preview it. This page serves that preview: it mounts the same slot the // boundary reads its composition from, with the same code-owned fallback. export const dynamic = 'force-dynamic'; async function Page() { return ( } /> ); } export default withSegmentDefaults(Page, { segmentType: 'page' });